package edu.sctu.practice.class01.nieyu.assign02.test_1_circle;

/**
 * Created by Administrator on 2015/10/8.
 */
public class Circle {

    double radius;
    static int numOfObjects = 0;

    public Circle(double radius) {

        this.radius = radius;
        numOfObjects++;
    }

    public double getArea() {

        double area = Math.PI * radius * radius;
        return area;
    }

    public int getNumOfObjects() {

        return numOfObjects;
    }
}
